package com.shao.jiegou;

public class while02 {
    public static void main(String[] args) {
//    计算一家到一百
        int i=1;
        int sum=0;
        while (i<=100){
            sum += i;
            i++;
        }
        System.out.println(sum);
    }
}
